#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main()
{
	int num;
	while (scanf("%d", &num) != EOF)
	{
		int i, j;
		for (i = 0; i < num; i++)
		{
			for (j = 0; j < num; j++)
				printf("* ");
			printf("\n");
		}

		getchar();
	}
	return 0;
}